package com.ny.zmb.openapi.jh.from;

import com.ny.zmb.openapi.ysutil.annotation.Length;
import com.ny.zmb.openapi.ysutil.annotation.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class JHWayBillFrom implements Serializable {

    //售后服务单号
    @NotBlank
    private String asNo;
    //运费
    @NotBlank
    private Integer freight;
    //发运公司：其他,顺丰快递,圆通速递,中通速递,韵达快运,天天快递,百世快递,全峰快递,德邦物流,宅急送,快捷速递,比利时邮政,速尔快递,国通快递,如风达,安能物流,邮政包裹/平邮,优速物流,申通快递,EMS,京东物流,黄马快递,苏宁物流,丹鸟快递,极兔快递
    @NotBlank
    private String carrier;
    //发货日期，格式为 yyyy-MM-dd HH:mm:ss
    @NotBlank
    private String deliveryDate;
    //货运单号，最大 50 字符
    @NotBlank
    @Length(max = 50)
    private String deliveryNo;

}
